<?php
/*========================================= JooSam =========================================/
/																							/
/	Extention:		JooSam																	/
/	Created by:		ScriptPlanet.eu															/
/	Site:			http://www.scriptplanet.eu												/
/	Email:			support@scriptplanet.eu													/
/	Support:		http://www.scriptplanet.eu/support										/
/	Copyright:		2011 (c) ScriptPlanet.eu												/
/	License:		CC BY-NC-ND 3.0 ~ http://creativecommons.org/licenses/by-nc-nd/3.0/		/
/	File Version:	0001																	/
/																							/
/========================================== JooSam ========================================*/
// Joomla Security
defined('_JEXEC') or die;
JHtml::_('behavior.tooltip');
$data = $this->request;
$samerr = $this->samerr;
?>
<div class="jsam_mod_populate"><?php
	if($samerr == ''): ?>
		<table class="jsam_table"> <?php
			foreach($data as $c => $req):
				if($req['artist'] == ''){$req['artist'] = JText::_('COM_JOOSAM_NOARTIST');}
				if($req['title'] == ''){$req['title'] = JText::_('COM_JOOSAM_NOTITLE');} ?>
				<tr class="jsam_row_bg<?php echo $c % 2; ?>">
					<td class="jsam_td">
						<span class="jsam_span_artist"><?php echo utf8_encode($req['artist']); ?></span>,
						<span class="jsam_span_title"><?php echo utf8_encode($req['title']); ?></span>
					</td>
				</tr> <?php 
			endforeach; ?>
		</table><?php
	else: ?>
		<div style="background:white; color:red; font-weight:bold; border-radius:10px; margin:1px; text-align:center; padding:0;">
			<?php echo $samerr; ?>
		</div> <?php
	endif; ?>
</div>